package oopextendsdemo;
//一个JAVA文件中可以有多个class类，但只能有一个public，
// 一个文件中可有可无main，但一个程序中只能有一个main，且main必须在public中
public class Test {
    public static void main(String[] args) {
        Manager manager = new Manager("xixailiusuyue02","小帅",15000,8000);
        System.out.println(manager.getId()+","+manager.getName()
                +","+ manager.getSalary()+","+ manager.getBouns());
        manager.eat();
        manager.work();
        System.out.println("+++++++++++++++++++++++++++++");
        Cook cook = new Cook();
        cook.setId("xixialiusuyue01");
        cook.setName("大傻");
        cook.setSalary(125854);
        System.out.println(cook.getId()+","+cook.getName()
                +","+ cook.getSalary());
        cook.eat();
        cook.work();
    }
}
